<?php
require_once('BaseController.class.php');
class EjemploController extends BaseController {
	public function indexGet() {
		$this->createModel();
		$d['frase']=$this->model->getIndex();
		$this->returnView($d);
	}
	
	public function insertarGet() {
		$this->createModel();
		$d['nav']=$this->getDatosNav();
		$this->returnView();
	}
	
	public function addPost() {
		$this->createModel();
		$d['solucion']=$this->model->getAdd();
		$d['nav']=$this->getDatosNav();
		$this->returnView($d);
	}
	
	public function listarGet() {
		$this->createModel();
		$d['tablaEmpleados']=$this->model->listar();
		$d['nav']=$this->getDatosNav();
		$this->returnView($d);
	}
	
}
?>